﻿@using PagedList
@using PagedList.Mvc;
@model PagedList.IPagedList<IankerProj.Models.Thietbi>
@{
    ViewBag.Title = "TrangChu";
    Layout = "~/Views/Shared/TrangChu.cshtml";
}

<div class="wrap">
    <div class="banner">
        <div id="slider" class="slider">
            <ul>

                <li><a onclick="ga('send', 'event', 'click', 'banner click', '7925old');" href="#"><img src="/data/afficheimg/en_us/7925.jpg"></a></li>

                <li><a onclick="ga('send', 'event', 'click', 'banner click', '9901');" href="#"><img src="/data/afficheimg/en_us/9901white.jpg"></a></li>

                <li><a onclick="ga('send', 'event', 'click', 'banner click', 'MFI cable banner');" href="#"><img src="/data/afficheimg/en_us/mfi.jpg"></a></li>
            </ul>
        </div>
    </div>
    <div class="mainbar clearfix" style="margin-left:200px;">
        


     
        <ul class="product_slider pslider_list">
            @foreach (var p in Model)
            {
                <li class="product_slider_item">
                    <div class="product_slider_item_pic">
                        <a href="@Url.Action("Chitiet", "Sanpham", new { id=p.id})">
                            <img src="/img/@p.hinh" />
                        </a>


                    </div>

                    <div class="product_slider_item_txt">
                        <h3 style="color:#6f6f6f;">@Html.ActionLink(@p.ten, "Chitiet", "Sanpham", new { id = p.id }, new { @style = "color:#6f6f6f;" })</h3>
                    </div>
                </li>
            }
        </ul>
        @Html.PagedListPager(Model, page => Url.Action("TrangChu", new { page }), PagedListRenderOptions.MinimalWithPageCountText)
    </div>
</div>
<div class="index_about clearfix">
    <div class="big_block">
        <div class="index_about_follow">
            <p>Liên kết với chúng tôi</p>
            <p><a class="fb" href="#" target="_blank" rel="nofollow"></a><a class="tw" href="#" target="_blank" rel="nofollow"></a><a class="yb" href="#" target="_blank" rel="nofollow"></a></p>
        </div>
        
    </div>
</div>

